﻿using System.Threading.Tasks;

namespace NP.BPMReportPlatform.RecurringJobs
{

    public interface IFrameOrderRecurringJob
    {
        /// <summary>
        /// 更新离职人员的金额
        /// </summary>
        /// <returns></returns>
        public Task UpdateResignationUser();


        /// <summary>
        /// 更新数据提交到SAP和移动报销
        /// </summary>
        /// <returns></returns>
        public Task SyncFrameOrder();


        /// <summary>
        /// 给即将到期的用户发送邮件
        /// </summary>
        /// <returns></returns>
        public Task SendEmail();

        /// <summary>
        /// 手动推送
        /// </summary>
        /// <param name="instanceNumber">单号</param>
        /// <param name="type">推送类型：1-移动报销，2-SAP</param>
        /// <returns></returns>

        public  Task SyncFrameOrder(string instanceNumber, string type);
    }
}